<%@ Page Language="C#" AutoEventWireup="true" CodeFile="new.aspx.cs" Inherits="Private_CMS_taxonomy_actions_new" %>
<%@ Register TagPrefix="flux" Namespace="Deepcode.Flux.Core.UI.Controls" Assembly="Deepcode.Flux.Core" %>

<html>
	<head runat="server">
		<link href="../../../../Asset/Style/GeneralStyle.css" rel="stylesheet" type="text/css" />
		<link href="../localstyle.css" rel="Stylesheet" type="text/css" />
	</head>

<body class="nopadshaded">
<form id="form1" runat="server">
<flux:HostTable runat="server">
<flux:ValidationSummarySection runat="server" HeaderText="Please correct the following errors"/>
<flux:ShadePadBox runat="server">
    <table cellspacing="0" cellpadding="3" border="0">
    <tr><td>Category:<%=Required%></td>
        <td><asp:TextBox runat="server" ID="fCategoryName" Width="200px" MaxLength="100"/></td>
        <td><asp:Button runat="server" ID="btnSave" Text="Save" OnClick="BtnSave_Clicked"/></td>
        <td><asp:Button runat="server" ID="btnCancel" Text="Cancel" OnClick="BtnCancel_Clicked" CausesValidation="false"/>
        <td><asp:CheckBox runat="server" ID="chkSelect" Text="Select new category"/></td>
        </tr>
    </table>
</flux:ShadePadBox>
</flux:HostTable>

<asp:RequiredFieldValidator runat="server" ControlToValidate="fCategoryName" Display="None" ErrorMessage="Please specify category name"/>
<asp:CustomValidator runat="server" ControlToValidate="fCategoryName" Display="None" OnServerValidate="EnsureUnique" ErrorMessage="That category name already exists at this level"/>

</form>
</body>
</html>
